<template>
  <vxe-table
      :data="tableData2">
    <vxe-column type="seq" width="60"></vxe-column>
    <vxe-column field="name" title="目录名称"></vxe-column>
  </vxe-table>
</template>

<script>
import {catalogueByParentIdService} from "@/api/electronic-map/electronic-map-service";

/**
 *{ 专题目录 }
 * @param:
 * @author: 宋康
 * @DateTime: 2022/7/5
 */
export default {
  name: "SubjectCatalogueList",
  data() {
    return {
      tableData2: []
    }
  },
  methods: {
    getList() {
      // 查询目录
      catalogueByParentIdService(0).then(res => {
        if (res.status) {
          this.tableData2 = res.data;
        } else {
          this.$message.error(res.msg)
        }
      })
    }
  },
  mounted() {
    this.getList();
  }
}
</script>

<style lang="scss" scoped>
</style>
